
/**
* Local misclenous functions
*
* @package  Misc
*
*/
var Misc = {
  
  /**
  * Validate the Password
  *
  * @param  String  src1st
  * @param  String  src2nd
  * 
  */
  vldPassword : function(src1st, src2nd){
    
    src1st  = document.getElementsByName(src1st);
    src2nd  = document.getElementsByName(src2nd);
    
    if(src1st.length > 0){
      
      src1st = src1st[0];
    }
    
    if(src2nd.length > 0){
      
      src2nd = src2nd[0];
    }
    
    if(src1st.value != src2nd.value){
      
      alert("Password is incorrect");
      
      src1st.value  = "";
      src2nd.value  = "";
    }else{
      
      /* Do nothing */
    }
  }
  
}